package com.yc.navy.dayfresh.enums;

public enum ResultEnum {
	ERROR(500,"错误"),
	SUCCESS(200,"成功"),
	DATA_NULL(600,"暂无数据"),
	CODE_ERROR(510,"验证码错误"),
	CHECK_ERROR(511,"数据格式校验错误"),
	LOGIN_ERROR(512,"未登录"),
	DATA_TIMEOUT(513,"数据过期");
	
	private Integer code;
	private String msg;
	
	private ResultEnum(Integer code, String msg) {//创建了构造方法上面就不出现错误了
		this.code = code;
		this.msg = msg;
	}

	private ResultEnum() {
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	
}
